package simple.test;

import java.io.IOException;
import java.nio.file.FileSystem;
import java.nio.file.Path;

/**
 * Created by jin on 2016/9/2.
 */
public class HdfsService {
    public static void main(String args[]){
//        org.apache.hadoop.conf.Configuration configuration = new org.apache.hadoop.conf.Configuration();
//        configuration.set("fs.default.name","hdfs://127.0.0.1:9000");
//        Path dstPath = new Path("/Loads/" + "ddd55");
//        try {
//            FileSystem hdfs = dstPath.getFileSystem(configuration);
//            hdfs.copyFromLocalFile(false,true, new Path("/home/luoqifei/hdfsupload"), dstPath);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
    }
}
